#include "cv.h"
#include "highgui.h"
#define CUT 24
int main(int argc, char** argv){
	IplImage *in=cvLoadImage(argv[1],1);
	IplImage *out=cvCreateImage(cvSize(in->width,in->height-CUT),in->depth,in->nChannels);
	
	cvSetImageROI(in,cvRect(0,0,in->width,in->height-CUT));
	cvCopy(in,out,0);

	cvSaveImage("modify_out.jpg",out,0);

	cvReleaseImage(&in);
	cvReleaseImage(&out);
	return 0;
}
